<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<script type="text/javascript">
window.onload = function() {
	var notice_ok = document.getElementById("notice_ok");
	notice_ok.onmouseover = function() {
		notice_ok.style.cursor = "pointer";
	};
};
</script>

<header>
	<h2>Notice Edit</h2>
</header>
<hr style="border:#ddd 1px dotted" />
<form action="noticeEditProcess.do" method="post">
	<input type="hidden" name="seq" value="${ notice.seq }" />
	<input type="hidden" name="url"  value="${ url }" />
	<input type="hidden" name="p"  value="2" />
	<table class="table">
		<tr>
			<th>제목</th>
			<td>
				<div class="dynamiclabel">
					<input name="title" id="noticeEdit_title" placeholder="공지사항 제목" type="text" value="${ notice.title }" maxlength="50" />
					<label for="title">제목</label>
				</div>
			</td>
		</tr>
		<tr>
			<th>날짜</th>
			<td>${ notice.regdate }</td>
		</tr>
		<tr>
			<th>작성자</th>
			<td>${ member.mName }<input type="hidden" name="writer"  value="${ member.mName }" /></td>
		</tr>
		<tr>
			<th>조회수</th>
			<td>${ notice.hitcount }</td>
		</tr>
	</table>
	<div class="dynamiclabel">
		<textarea name="content" id="notice_Content" placeholder="공지사항 내용을 입력하세요" style="overflow:hidden" onkeydown="limit(this.form)">${ notice.content }</textarea>
		<label for="content">내용</label>
	</div>
	<hr style="border:#ddd 1px dotted" />
	<div id="notice_submit">
		<input type="submit" value="저장" id="notice_ok" class="notice_button"  onclick="submit1(this.form)" />&nbsp;&nbsp;
		<a href="notice.do?p=2&url=${url}" class="board_button">취소</a>
	</div>
	
</form>
